package com.example.myapplication.old;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;

import com.example.myapplication.R;
import com.example.myapplication.old.DemoOneFragment;

public class FragmentDemoActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_fragment_demo);
        getSupportFragmentManager().beginTransaction()
        .add(R.id.container, DemoOneFragment.class,null)
        .commit();
    }
}